package com.dwxt.cdms.dao.yumeng;

import com.dwxt.cdms.entity.yumeng.HrData;
import com.dwxt.cdms.view.wristwatch.HrDataView;
import com.dwxt.cdms.vo.SelectWatchDataVo;
import com.dwxt.cdms.vo.SelectWatchVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface HrDataMapper extends Mapper<HrData> {

    int countHrDataByDevAndTime(HrData hrData);

    List<HrDataView> selectHrDataViewByCondition(SelectWatchDataVo selectWatchDataVo);

    int deleteHrDataByCustomerIds(@Param("customerIds") Integer[] customerIds);

    int replaceBindingWatchUser(@Param("customerId") Integer customerId, @Param("deviceIdentity") String deviceIdentity);

    List<Integer> selectCustomerIdListByCondition(SelectWatchDataVo selectWatchDataVo);

    HrDataView selectHrDataViewByCustomerIdAndNewest(Integer customerId);

    List<HrDataView> selectHrDataViewListByCustomerId(SelectWatchVo selectWatchVo);

    List<HrData> selectHrDataGraph(Integer customerId);

    List<HrDataView> selectCustomerHrDataView(String customerId, Integer scope);
}